# -*- coding: utf-8 -*-
# Project  : JXC
# FileName : urls.py
# Time     : 2020/7/2 11:30
# Author  : Mason101

from django.urls import path
from . import supply_views, category_views, record_views

app_name = "supply"
urlpatterns = [
    path("index/", supply_views.index, name="supply_index"),
    path("api/supply/list/", supply_views.supply_list, name="supply_list"),
    path("api/supply/add/", supply_views.supply_add, name="supply_add"),
    path("api/supply/edit/<sp_id>/", supply_views.supply_edit, name="supply_edit"),
    path("api/supply/del/<sp_id>/", supply_views.supply_del, name="supply_del"),

    path("record/index/", record_views.index, name="record_index"),
    path("api/record/list/", record_views.record_list, name="record_list"),
    path("api/record/add/<order_type>/", record_views.record_add, name="record_add"),
    path("api/record/edit/<rc_id>/", record_views.record_edit, name="record_edit"),
    path("api/record/verify/", record_views.record_verify, name="record_verify"),
    path("api/record/del/<rc_id>/", record_views.record_del, name="record_del"),
    path("api/in_out_statistics/", record_views.in_out_statistics, name="in_out_statistics"),

    path("category/index/", category_views.index, name="category_index"),
    path("api/category/list/", category_views.category_list, name="category_list"),
    path("api/category/add/", category_views.category_add, name="category_add"),
    path("api/category/edit/<cg_id>/", category_views.category_edit, name="category_edit"),
    path("api/category/del/<cg_id>/", category_views.category_del, name="category_del"),
]
